public class Test {
    public static void main(String[] args) {
        Integer a =10;
        int b=a;//自动的拆箱
        int c=a.intValue();//手动拆箱
        double d = a.doubleValue();
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
    }
    public static void main2(String[] args) {
        int a=10;
        Integer i =Integer.valueOf(a);//显示装箱（手动）
        Integer i2=12;//自动装箱
        Double d=Double.valueOf(a);
        System.out.println(a);
        System.out.println(i);
        System.out.println(i2);
        System.out.println(d);
    }
    public static void main1(String[] args) {
        //阿里巴巴面试题
        Integer a =100;
        Integer b=100;
        System.out.println(a==b);

        Integer c = 200;
        Integer d =200;
        System.out.println(c==d);
    }
}
